
#ifndef GETHTML_H
#define GETHTML_H

#include <string>
#include <fstream>
#include <iostream>
#include <direct.h>
#include "../Header/ProcessHtml.h"

using std::string;
using std::ifstream;
using std::ofstream;

class GetHtml
{
public:
	GetHtml();
	void getHtmlMsg();
	//void getFileName();
	void openHtmlFile();
	void closeHtmlFile();
	void makeHtmlFile();
	void processSubHtmlFile(string &);
	void ReadProcessedFile();
	void RecordProcessedHtml(const string &);
	bool FindIfProcessed(const string &);
	inline unsigned long lineNumber() { return line_number; }

public:
	ifstream		infile;
	ofstream		outfile;

private:
	ProcessHtml		*process_html_obj;
	vector<string>	processed_html_file_vector;
	string			file_name;
	string			str_process, str_replace;
	string			str_html, str_dest;
	string			str_html_mod;
	unsigned long	line_number;
	string::size_type HTML_DIR_NAME_LEN;
	string::size_type HTML_NAME_POS;
};

#endif